/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jm.financeiro.view;

import br.jm.financeiro.datamodel.LazyLogSistema;
import br.jm.financeiro.entity.LogSistema;
import br.jm.financeiro.sistema.eao.LogSistemaDetalheEao;
import br.jm.financeiro.sistema.eao.LogSistemaEao;
import java.io.Serializable;
import org.primefaces.model.LazyDataModel;

/**
 *
 * @author joao
 */
public class LogSistemaBean implements Serializable {

    private static final long serialVersionUID = 1L;
    private LogSistema selectedLogSistema;
    private LazyDataModel<LogSistema> lazyModel;
    private final LogSistemaEao logSistemaEAO;
    private final LogSistemaDetalheEao logSistemaDetalheEAO;

    public LogSistemaBean() {
        logSistemaEAO = LogSistemaEao.getInstance();
        logSistemaDetalheEAO = LogSistemaDetalheEao.getInstance();
        selectedLogSistema = new LogSistema();

        lazyModel = new LazyLogSistema(logSistemaEAO,logSistemaDetalheEAO);

    }

    public LogSistema getSelectedLogSistema() {
        return selectedLogSistema;
    }

    public void setSelectedLogSistema(LogSistema selectedLogSistema) {
        this.selectedLogSistema = selectedLogSistema;
    }

    public LazyDataModel<LogSistema> getLazyModel() {
        return lazyModel;
    }

    public void setLazyModel(LazyDataModel<LogSistema> lazyModel) {
        this.lazyModel = lazyModel;
    }

}
